package com.keepers.repair.adapter

import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.keepers.repair.R
import com.keepers.repair.model.ChatHistoryItemModel

class ChatContentAdapter(val list: List<ChatHistoryItemModel>) : RecyclerView.Adapter<ChatContentAdapter.ViewHolder>() {

    override fun getItemCount() = list.size
    override fun onCreateViewHolder(viewGroup: ViewGroup, position: Int): ViewHolder {
        val view = LayoutInflater.from(viewGroup.context).inflate(R.layout.item_chat_content, viewGroup, false)
        return ViewHolder(view)
    }

    override fun onBindViewHolder(viewHolder: ViewHolder, position: Int) {
    }

    class ViewHolder(view: View) : RecyclerView.ViewHolder(view)
}
